﻿
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName = "IFPRecognizerService")]
public interface IFPRecognizerService
{

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/getAccessToken", ReplyAction = "http://tempuri.org/IFPRecognizerService/getAccessTokenResponse")]
    string getAccessToken(string user, string pass);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/destroyAccessToken", ReplyAction = "http://tempuri.org/IFPRecognizerService/destroyAccessTokenResponse")]
    void destroyAccessToken(string accessToken);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/getPersonById", ReplyAction = "http://tempuri.org/IFPRecognizerService/getPersonByIdResponse")]
    FingerPrintRecognizer.Common.Person getPersonById(string accessToken, int id);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/getPersonByNationalId", ReplyAction = "http://tempuri.org/IFPRecognizerService/getPersonByNationalIdResponse")]
    FingerPrintRecognizer.Common.Person getPersonByNationalId(string accessToken, string nationalID);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/getPersons", ReplyAction = "http://tempuri.org/IFPRecognizerService/getPersonsResponse")]
    FingerPrintRecognizer.Common.Person[] getPersons(string accessToken, int itemPerPage, int pageNo);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/savePerson", ReplyAction = "http://tempuri.org/IFPRecognizerService/savePersonResponse")]
    bool savePerson(string accessTocken, FingerPrintRecognizer.Common.Person person);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/getPluginList", ReplyAction = "http://tempuri.org/IFPRecognizerService/getPluginListResponse")]
    FingerPrintRecognizer.Common.PluginInfo[] getPluginList(string accessTocken);

    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IFPRecognizerService/loadPlugin", ReplyAction = "http://tempuri.org/IFPRecognizerService/loadPluginResponse")]
    bool loadPlugin(string accessTocken, FingerPrintRecognizer.Common.PluginInfo pi);
}

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface IFPRecognizerServiceChannel : IFPRecognizerService, System.ServiceModel.IClientChannel
{
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class FPRecognizerServiceClient : System.ServiceModel.ClientBase<IFPRecognizerService>, IFPRecognizerService
{

    public FPRecognizerServiceClient()
    {
    }

    public FPRecognizerServiceClient(string endpointConfigurationName) :
        base(endpointConfigurationName)
    {
    }

    public FPRecognizerServiceClient(string endpointConfigurationName, string remoteAddress) :
        base(endpointConfigurationName, remoteAddress)
    {
    }

    public FPRecognizerServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
        base(endpointConfigurationName, remoteAddress)
    {
    }

    public FPRecognizerServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
        base(binding, remoteAddress)
    {
    }

    public string getAccessToken(string user, string pass)
    {
        return base.Channel.getAccessToken(user, pass);
    }

    public void destroyAccessToken(string accessToken)
    {
        base.Channel.destroyAccessToken(accessToken);
    }

    public FingerPrintRecognizer.Common.Person getPersonById(string accessToken, int id)
    {
        return base.Channel.getPersonById(accessToken, id);
    }

    public FingerPrintRecognizer.Common.Person getPersonByNationalId(string accessToken, string nationalID)
    {
        return base.Channel.getPersonByNationalId(accessToken, nationalID);
    }

    public FingerPrintRecognizer.Common.Person[] getPersons(string accessToken, int itemPerPage, int pageNo)
    {
        return base.Channel.getPersons(accessToken, itemPerPage, pageNo);
    }

    public bool savePerson(string accessTocken, FingerPrintRecognizer.Common.Person person)
    {
        return base.Channel.savePerson(accessTocken, person);
    }

    public FingerPrintRecognizer.Common.PluginInfo[] getPluginList(string accessTocken)
    {
        return base.Channel.getPluginList(accessTocken);
    }

    public bool loadPlugin(string accessTocken, FingerPrintRecognizer.Common.PluginInfo pi)
    {
        return base.Channel.loadPlugin(accessTocken, pi);
    }
}
